/*
 * File.h
 *
 *  Created on: 2013-1-4
 *      Author: yangentao@gmail.com
 */

#pragma once;
#include <string>
#include <stdio.h>

using namespace std;

namespace yet {

class FileReader {
public:
	FileReader();
	virtual ~FileReader();
public:
	bool open(string filename);
	int read(char* buf, int bufSize);
	void close();
	bool isOpen();
private:
	FILE* f;
};

} /* namespace yet */
